-
Notifications
You must be signed in to change notification settings - Fork 13
foundations/datetimeの翻訳 #291
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR translates the foundations/datetime
documentation from English to Japanese. The translation covers all user-facing documentation including function descriptions, parameter explanations, and formatting guidelines while maintaining the original code structure and functionality.
- Translates all docstring comments from English to Japanese
- Updates translation status for the datetime documentation page
- Preserves all code examples and technical formatting
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
File | Description |
---|---|
website/translation-status.json | Updates status from "untranslated" to "translated" for datetime documentation |
crates/typst-library/src/foundations/datetime.rs | Translates all documentation comments to Japanese while preserving code functionality |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
/// An offset to apply to the current UTC date. If set to `{auto}`, the | ||
/// offset will be the local offset. | ||
/// 現在のUTC日時に適用するオフセットです。`{auto}` に設定 | ||
/// した場合は、ローカルのオフセットが適用されます。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line 319 has trailing whitespace that should be removed for consistency.
/// した場合は、ローカルのオフセットが適用されます。 | |
/// した場合は、ローカルのオフセットが適用されます。 |
Copilot uses AI. Check for mistakes.
/// ください。たとえば、`{datetime(year: 2023, month: 10, day: | ||
/// 13)}`のようにして新しい`datetime`を作成すると、内部的には |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The line break in the middle of the code example {datetime(year: 2023, month: 10, day: 13)}
should be avoided. Consider keeping the code example on a single line or restructuring the sentence to avoid breaking the code.
/// ください。たとえば、`{datetime(year: 2023, month: 10, day: | |
/// 13)}`のようにして新しい`datetime`を作成すると、内部的には | |
/// ください。たとえば、`{datetime(year: 2023, month: 10, day: 13)}`のようにして新しい`datetime`を作成すると、内部的には |
Copilot uses AI. Check for mistakes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
翻訳ありがとうございます。概ね問題ないように思います。
/// - `repr`: 曜日名(`long`)、曜日名の略称(`short`)、日曜(`sunday`)、月曜(`monday`)のいずれかを指定できます。 | ||
/// `long`と`short`では、対応する曜日名が英語で表示されます。 | ||
/// (月名と同様に、他言語での表示はまだサポートされていません)。 | ||
/// `sunday`と`monday`では、日曜または月曜から数えた日数が数値で表示されます |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/// `sunday`と`monday`では、日曜または月曜から数えた日数が数値で表示されます | |
/// `sunday`と`monday`では、日曜または月曜から数えた日数が数値で表示されます。 |
#[scope] | ||
impl Datetime { | ||
/// Creates a new datetime. | ||
/// 新しい datetime を作成。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/// 新しい datetime を作成。 | |
/// 新しいdatetimeを作成。 |
/// _注_:指定する`datetime`の要素によって、Typstが保持する形式は次の3通りのいずれかになります。 | ||
/// * 年、月、日だけを指定した場合、Typstは日付のみを保持します。 | ||
/// * 時、分、秒だけを指定した場合、Typstは時刻のみを保持します。 | ||
/// * 年、月、日、時、分、秒すべてを指定した場合、Typst は完全な日時を保持します。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/// * 年、月、日、時、分、秒すべてを指定した場合、Typst は完全な日時を保持します。 | |
/// * 年、月、日、時、分、秒すべてを指定した場合、Typstは完全な日時を保持します。 |
#[func(constructor)] | ||
pub fn construct( | ||
/// The year of the datetime. | ||
/// `datetime`の年 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/// `datetime`の年 | |
/// `datetime`の年。 |
#[named] | ||
year: Option<i32>, | ||
/// The month of the datetime. | ||
/// `datetime`の月 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/// `datetime`の月 | |
/// `datetime`の月。 |
#[named] | ||
month: Option<Month>, | ||
/// The day of the datetime. | ||
/// `datetime`の日 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/// `datetime`の日 | |
/// `datetime`の日。 |
#[named] | ||
day: Option<u8>, | ||
/// The hour of the datetime. | ||
/// `datetime`の時 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/// `datetime`の時 | |
/// `datetime`の時。 |
#[named] | ||
hour: Option<u8>, | ||
/// The minute of the datetime. | ||
/// `datetime`の分 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/// `datetime`の分 | |
/// `datetime`の分。 |
#[named] | ||
minute: Option<u8>, | ||
/// The second of the datetime. | ||
/// `datetime`の秒 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/// `datetime`の秒 | |
/// `datetime`の秒。 |
foundations/datetimeの翻訳です。